package zz.note.thread.create;

/**
 * 继承Thread类创建线程
 * @Author: ZZ
 * @date 2022/2/16
 */
public class Thread001 extends Thread {

	@Override
	public void run() {
		System.out.println("我是子线程:" + Thread.currentThread().getName());
	}

	public static void main(String[] args) {
		System.out.println("我是主线程:" + Thread.currentThread().getName());
		// 调用start方法启动线程
		new Thread001().start();
	}
}